package com.elink.enginerring.domain;

import io.swagger.annotations.ApiParam;

import java.util.Date;

public class Reply {
	@ApiParam(value="主键，修改回复的时候需要",required=false)
    private Integer replyId;
    
    @ApiParam(value="问题id",required=true)
    private String postbarId;

    @ApiParam(value="回复内容",required=true)
    private String content;

    private Date replyTime;

    private Byte bestAnswer; //最佳回复 

    @ApiParam(value="上传的图片的路径，以逗号进行分割",required=false)
    private String picturePath;

    private Integer praise;

    private Integer boo;

    private String userId;
    
    //关联用户
    private UserView user;
    
    //关联问题
    private Postbar postbar;

    public Integer getReplyId() {
        return replyId;
    }

    public void setReplyId(Integer replyId) {
        this.replyId = replyId;
    }

    public String getPostbarId() {
        return postbarId;
    }

    public void setPostbarId(String postbarId) {
        this.postbarId = postbarId == null ? null : postbarId.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    public Byte getBestAnswer() {
        return bestAnswer;
    }

    public void setBestAnswer(Byte bestAnswer) {
        this.bestAnswer = bestAnswer;
    }

    public String getPicturePath() {
        return picturePath;
    }

    public void setPicturePath(String picturePath) {
        this.picturePath = picturePath == null ? null : picturePath.trim();
    }

    public Integer getPraise() {
        return praise;
    }

    public void setPraise(Integer praise) {
        this.praise = praise;
    }

    public Integer getBoo() {
        return boo;
    }

    public void setBoo(Integer boo) {
        this.boo = boo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

	public UserView getUser() {
		return user;
	}

	public void setUser(UserView user) {
		this.user = user;
	}

	public Postbar getPostbar() {
		return postbar;
	}

	public void setPostbar(Postbar postbar) {
		this.postbar = postbar;
	}
}